-- GENERATED SPELL FOR [Shadowmoon Retainer] --


function spell0_22102(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22102', 637, 1)
end

function Sorts_22102(pUnit, Event)
local choix_sorts_22102 = math.random(0, 0)
if choix_sorts_22102 == 0 then
pUnit:RegisterEvent('spell0_22102', 1, 1)
end
end

function mob22102_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22102', math.random(1500, 3000), 1)
end

function mob22102_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22102_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22102_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22102, 1, 'mob22102_Action')
RegisterUnitEvent(22102, 2, 'mob22102_Leave')
RegisterUnitEvent(22102, 3, 'mob22102_Kill')
RegisterUnitEvent(22102, 4, 'mob22102_Die')
